<?php
 echo $_FILES['upload']['error'];
 if(!move_uploaded_file($_FILES['upload']['tmp_name'],'../public/images/'.$_FILES["upload"]['name']))
 {echo 'y';};
?>